home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / C / PSK.ZIP / SQ.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-13  |  1.2 KB  |  60 lines

  1. /*
  2.     sq.C
  3.  
  4.     System Query v1.0
  5.  
  6.     Copyright (C) 1993, Geoff Friesen B.Sc.
  7.     All rights reserved.
  8.  
  9.     Borland C++ 3.1
  10. */
  11.  
  12. #if !defined(__LARGE__)
  13. #error Large Memory Model Expected
  14. #endif
  15.  
  16. #include "kbd.H"
  17. #include "sq.H"
  18. #include "video.H"
  19.  
  20. void main (void)
  21. {
  22.    int win;
  23.  
  24.    (void) v_setup (25);
  25.  
  26.    if (sq_dos1 ())
  27.        v_cputs ("DOS 1.x is active.");
  28.    else
  29.    {
  30.        if (sq_dos5 ())
  31.        v_cputs ("DOS 5.0+ is active.");
  32.        else
  33.        v_cputs ("DOS 5.0+ is not active.");
  34.  
  35.        v_gotoxy (1, v_wherey ()+1);
  36.        if (sq_dvactive ())
  37.        v_cputs ("Desqview 2.0+ is active.");
  38.        else
  39.        v_cputs ("Desqview 2.0+ is not active.");
  40.  
  41.        v_gotoxy (1, v_wherey ()+1);
  42.        if ((win = sq_winactive ()) == 1)
  43.        v_cputs ("Windows is running in standard or real mode.");
  44.        else
  45.        if (win == 2)
  46.        v_cputs ("Windows is running in enhanced (386) mode.");
  47.        else
  48.        v_cputs ("Windows is not running.");
  49.  
  50.        v_gotoxy (1, v_wherey ()+1);
  51.        if (sq_xmm ())
  52.        v_cputs ("Extended Memory Management is active.");
  53.        else
  54.        v_cputs ("Extended Memory Management is not active.");
  55.    }
  56.  
  57.    (void) k_fetch ();
  58.  
  59.    v_cleanup ();
  60. }